import Vue from 'vue'
import App from './App'
import myRequest from './util/api.js'
let share=require('./util/newShare.js');
Vue.config.productionTip = false
Vue.prototype.http=myRequest;
import uView from 'uview-ui';
Vue.use(uView);
Vue.mixin(share)
Vue.filter('formatDate',(date)=>{
	const nDate = new Date(date)
	const year = nDate.getFullYear()
	const month = nDate.getMonth().toString().padStart(2,0)
	const day = nDate.getDay().toString().padStart(2,0)
	return year+'-'+month+'-'+day
})
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
